package com.example.demo.controller;

import com.example.demo.aspect.MyAspect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Home-pc
 * Date: 2024-02-22
 * Time: 21:03
 */
@RestController
public class HelloController {

    @MyAspect
    @RequestMapping("/hello")
    public String hello(){
        return "hello";
    }

    @RequestMapping("/hello1")
    public String hello1(){
        int a=10/0;
        return "hello";
    }
}
